Release 10.1A: OpenEdge Development:
Progress 4GL Reference
RIGHT-TRIM function
Removes trailing white space, or other specified characters, from a CHARACTER or LONGCHAR expression.
Syntax
expressionAn expression (a constant, field name, variable name, or expression) whose value is a CHARACTER or LONGCHAR. If
expressionis a case-sensitive variable, Progress performs a case-sensitive trim. Ifexpressionis a LONGCHAR, the result is in the same code page.trim-charsA character expression that specifies the characters to trim from
Exampleexpression. If you do not specifytrim-chars, the RIGHT-TRIM function removes spaces, tabs, line feeds, and carriage returns.The following example shows the effects of the TRIM, RIGHT-TRIM, and LEFT-TRIM functions:
Notes
- The RIGHT-TRIM function is similar to the TRIM function except that it trims characters only from the right end of the string.
- If
expressionis a case-sensitive field or variable, thentrim-charsis also treated as case sensitive. Otherwise,trim-charsis not case sensitive.- The RIGHT-TRIM function is double-byte enabled. The specified
expressionandtrim-charsarguments can contain double-byte characters. RIGHT-TRIM does not remove double-byte space characters by default.See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |